package com.log.log.annotation;

import com.log.log.utils.OperationTypEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface LogOperation {
    OperationTypEnum operationType();
    String primaryKeyField();
    boolean handleRelatedEntities() default false;
    Class<?> relatedEntityClass() default void.class;
    String relatedForeignKeyField() default "";
}
